<%@page contentType="text/html" pageEncoding="UTF-8" %>
var items = [];
var exType = getOs();
<ibnms:isPermission operationCode="10-10-10-15">
 $(this).parent().find("a._alarm").each(function () {
    var obj = this;
    items.push({
    text: $(obj).text(),
    href: obj.href,
    click: function () {
        var url = this.href;
        if('MSIE'==exType||navigator.userAgent.indexOf("rv:11")>0){
            url = encodeURI(this.href);
        }
        var guid = window.showModalDialog(url, "", "dialogWidth=1050px;dialogHeight=600px;status=no");
        if(guid){
            this.text = "修改告警配置";
            this.href = "<s:url action="alarmConfigForm" namespace="/ibnms/config"/>?event.guid="+guid;
        }
    }
    });
 });
</ibnms:isPermission>
$(this).parent().find("a._hisdata").each(function () {
    var obj = this;
    items.push({
        text: $(obj).text(),
        href: obj.href,
        click: function () {
        var url = this.href;
        if('MSIE'==exType||navigator.userAgent.indexOf("rv:11")>0){
            url = encodeURI(this.href);
        }
        window.showModalDialog(url, "", "dialogWidth=1050px;dialogHeight=600px;status=no");
        }
    });
});
return items;